package com.group02.community.utils;

public enum ResponseStatus {
    OK(200,"成功"),
    INTERNAL_ERROR(500000,"内部错误"),
    LOGIN_ERROR(500001,"账号或密码错误"),
    BUSINESS_ERROR(500002,"业务错误"),
    AUTHORITY_ERROR(500003,"授权错误"),
    AUTHENTICATE_ERROR(403,"验证错误，需要登录");

    private Integer code;

    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResponseStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
